package com.lease.web.admin.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lease.model.entity.LeaseAgreement;
import com.lease.web.admin.mapper.LeaseAgreementMapper;
import com.lease.web.admin.service.LeaseAgreementService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lease.web.admin.vo.agreement.AgreementQueryVo;
import com.lease.web.admin.vo.agreement.AgreementVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wu
 * @description 针对表【lease_agreement(租约信息表)】的数据库操作Service实现
 * @createDate 2025-05-01 15:48:00
 */
@Service
public class LeaseAgreementServiceImpl extends ServiceImpl<LeaseAgreementMapper, LeaseAgreement>
        implements LeaseAgreementService {
    @Autowired
    private LeaseAgreementMapper leaseAgreementMapper;


    @Override
    public IPage<AgreementVo> pageGetAllLeaseItem(Page<AgreementVo> page, AgreementQueryVo queryVo) {
         return   leaseAgreementMapper.pageSelectAllLeaseItem(page,queryVo);


    }

    @Override
    public AgreementVo getLeaseAgreementById(Long id) {
       return leaseAgreementMapper.selectOneLeaseAgreementById(id);
    }
}




